package sample.hystrix.client.consumer.services;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import sample.hystrix.client.consumer.fallback.SampleFallback;

@FeignClient(value = "sample-hystrix-client-provider",
        path="provider",
        fallback = SampleFallback.class)
public interface ISampleService {
    @RequestMapping(value="/test",method = RequestMethod.GET)
    public String test(@RequestParam("str")String str);
}
